package com.yf1706.bean;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnore;


/**
 * The persistent class for the emp_communication_info database table.
 * 
 */
@Entity
@Table(name="emp_communication_info")
@NamedQuery(name="EmpCommunicationInfo.findAll", query="SELECT e FROM EmpCommunicationInfo e")
public class EmpCommunicationInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;

	private String address;

	private String city;

	@Column(name="contact_person")
	private String contactPerson;

	@Column(name="contact_tel")
	private String contactTel;

	private String country;

	@Column(name="current_address")
	private String currentAddress;

	private String district;

	private String email;

	private String fax;

	@Column(name="postal_code")
	private String postalCode;

	private String province;

	private String street;

	private String tel1;

	private String tel2;

	//bi-directional one-to-one association to Emp
	@OneToOne
	@JsonIgnore
	@JoinColumn(name="emp_id")
	private Emp emp;

	public EmpCommunicationInfo() {
	}


	@Override
	public String toString() {
		return "EmpCommunicationInfo [id=" + id + ", address=" + address + ", city=" + city + ", contactPerson="
				+ contactPerson + ", contactTel=" + contactTel + ", country=" + country + ", currentAddress="
				+ currentAddress + ", district=" + district + ", email=" + email + ", fax=" + fax + ", postalCode="
				+ postalCode + ", province=" + province + ", street=" + street + ", tel1=" + tel1 + ", tel2=" + tel2
				+ "]";
	}


	public EmpCommunicationInfo(int id, String address, String city, String contactPerson, String contactTel,
			String country, String currentAddress, String district, String email, String fax, String postalCode,
			String province, String street, String tel1, String tel2) {
		super();
		this.id = id;
		this.address = address;
		this.city = city;
		this.contactPerson = contactPerson;
		this.contactTel = contactTel;
		this.country = country;
		this.currentAddress = currentAddress;
		this.district = district;
		this.email = email;
		this.fax = fax;
		this.postalCode = postalCode;
		this.province = province;
		this.street = street;
		this.tel1 = tel1;
		this.tel2 = tel2;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getContactPerson() {
		return this.contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCurrentAddress() {
		return this.currentAddress;
	}

	public void setCurrentAddress(String currentAddress) {
		this.currentAddress = currentAddress;
	}

	public String getDistrict() {
		return this.district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getPostalCode() {
		return this.postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getTel1() {
		return this.tel1;
	}

	public void setTel1(String tel1) {
		this.tel1 = tel1;
	}

	public String getTel2() {
		return this.tel2;
	}

	public void setTel2(String tel2) {
		this.tel2 = tel2;
	}

	public Emp getEmp() {
		return this.emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}

}